package de.hska.master.model;

import java.util.ArrayList;
import java.util.Arrays;

import de.hska.master.support.Geometry;

public class PointsInACircleModel extends Model {

	/**
	 * Generates numberOfPointsPoint points around a center 'centerPoint' within
	 * a specific radius 'radius'
	 * 
	 * @param numberOfPoints
	 *            number of points to create
	 * @param radius
	 *            radius of generated point to center
	 * @param centerPoint
	 *            center of circle
	 */
	public PointsInACircleModel(int numberOfPoints, int radius,
			Point centerPoint) {
		super();
		generatePoints(numberOfPoints, radius, centerPoint);
	}

	private void generatePoints(int numberOfPoints, int radius,
			Point centerPoint) {
		Geometry geo = new Geometry();
		points = new ArrayList<Point>(Arrays.asList(geo.getPointsInACircle(
				numberOfPoints, radius, centerPoint)));

	}

}
